<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">
<head th:replace="layouts::header">

</head>
<link rel="stylesheet" th:href="@{/css/bootstrap.css}">
<link rel="stylesheet" th:href="@{/css/bootstrap-theme.css}">
<link rel="stylesheet" th:href="@{/css/game.css}">
<link rel="stylesheet" th:href="@{/css/players.css}">
<body>
<nav th:replace="layouts::navbar"></nav>

    <div class="container">
        <h3>玩家列表</h3>
        <hr>
        <a th:href="@{/players/new}" class="btn btn-primary btn-sm mb-3">新增玩家</a>
        <br>
        <table class="table table-bordered tale-striped">
            <thead class="thead-dark">
                <tr>
                    <th>账户名称</th>
                    <th>邮箱</th>
                    <th>输入账号绑定的微信</th>
                </tr>
            </thead>
            <tbody>
            <tr th:each="aPlayer : ${players}">
                <td th:text="${aPlayer.name}"></td>
                <td th:text="${aPlayer.email}"></td>
                <td th:text="${aPlayer.wechatId}"></td>
            </tr>
            </tbody>
        </table>

    </div>
<script src="../../js/bootstrap.min.js" type="text/javascript"></script>
<script src="../../js/demo.js" type="text/javascript"></script>
</body>